import {
	createStore,
	combineReducers,
	applyMiddleware
} from 'redux';

import reducers from './reducers';
import thunk from 'redux-thunk';

export default createStore(
	combineReducers(reducers), {
		departDate: Date.now(),
		arriveDate: Date.now(),
		departTimeStr: "",
		arriveTimeStr: "",
		departStation: "",
		arriveStation: "",
		trainNumber: "",
		durationStr: "",
		tickets: [],
		isScheduleVisible: false,
		searchParsed: false,
	},
	applyMiddleware(thunk)
);